﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KvoMvc.Model
{
    public class SchoolManager
    {
        public static List<Person> GetPersonList()
        {
            var db = new SchoolContext();
            return db.Person.ToList<Person>();
        }

        public static List<Department> GetDepartmentList()
        {
            var db = new SchoolContext();
            return db.Department.ToList<Department>();
        }
    }
}
